import Vue from 'vue'
import App from './App.vue'
import store from './store'
import audoComponent from './plugins/audoComponent'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import api from './api'
import ElementUI from 'element-ui'
import EVueContextmenu from 'e-vue-contextmenu'
import 'element-ui/lib/theme-chalk/index.css'

import 'swiper/dist/css/swiper.css'

import './assets/css/reset.css'
import './assets/css/animate.css'
import './assets/iconfont/iconfont.css'

Vue.use(ElementUI)
Vue.use(audoComponent)
Vue.use(VueAwesomeSwiper)
Vue.use(EVueContextmenu)

Vue.config.productionTip = false
Vue.prototype.$api = api

new Vue({
  store,
  data: {
    config: {
      background: {
        url: 'https://files.codelife.cc/itab/defaultWallpaper/defaultWallpaper.webp',
        type: 'image'
      }
    },
    apps: {}
  },
  render: h => h(App)
}).$mount('#app')
